{template header}
<a class="btn btn-primary" href="index.php?c=admin&a=groupRecommendList">推荐列表</a>
<h4 style="padding-left:10px;;">搜索 <i class="icon-search"></i></h4>
<form class="form-horizontal clearfix form-inline" method="post" action="">
    <div class="control-group search-group">
        <label class="control-label" >群ID：</label>
        <div class="controls">
           <input type="text" name="gid"/>
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >群名称：</label>
        <div class="controls">
            <input type="text" name="gname"/>
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >群人数：</label>
        <div class="controls">
            <select name="members">
                <option value="">全部</option>
                <option value="50-100" {if $members == "50-100"}selected{/if} >50-100</option>
                <option value="101-300" {if $members == "101-300"}selected{/if}>101-300</option>
                <option value="301-500" {if $members == "301-500"}selected{/if}>301-500</option>
            </select>
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >跑步里程：</label>
        <div class="controls">
            <select name="mileage">
                <option value="">全部</option>
                <option value="3000-5000" {if $mileage == "3000-5000"}selected{/if} >3000-5000</option>
                <option value="5000" {if $members == "5000"}selected{/if}>5000</option>
            </select>
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <button class="btn" type="submit">提交</button>　
            <button class="btn" type="reset">重置</button>
        </div>
    </div>
</form>
<br/>
<div class="bs-docs-example table-align" style="clear:both;">
    <table class="table table-striped">
        <thead>
        <tr>
            <th>群组ID</th>
            <th>群头像</th>
            <th>群组名称</th>
            <th>创建时间</th>
            <th>地点</th>
            <th>群成员数量</th>
            <th>跑步总里程</th>
            <th>群组状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {if !$groupList}
        <tr>
            <td colspan="10">暂无记录</td>
        </tr>
        {else}

        {loop $groupList $k $v}
        <tr>
            <td>{$v['gid']}</td>
            <td><img width='30' height='30' src="{$v['header']}" /></td>
            <td><a href="?c=admin&a=GroupStatistic&gid=$v['gid']">{$v['name']}</td>
            <td>{eval echo date("Y-m-d H:i:s",$v['addtime'])}</td>
            <td>{$v['city']}</td>
            <td>{$v['members']}</td>
            <td>{$v['mileage']}</td>
            <td>{if $v['isDismiss'] == 1}解散{else}使用中{/if}</td>
            <td>
                <a class="btn btn-delete" href="?c=admin&a=addRecommendGroup&gid=$v['gid']">推荐</a>
            </td>
        </tr>
        {/loop}

        {/if}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
